home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / Fcntl.z / Fcntl
Encoding:
Text File  |  1998-10-30  |  2.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. FFFFccccnnnnttttllll((((3333))))                                                              FFFFccccnnnnttttllll((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Fcntl - load the C Fcntl.h defines
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.          use Fcntl;
  13.          use Fcntl qw(:DEFAULT :flock);
  14.  
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      This module is just a translation of the C _f_n_c_t_l._h file.  Unlike the old
  18.      mechanism of requiring a translated _f_n_c_t_l._p_h file, this uses the hhhh2222xxxxssss
  19.      program (see the Perl source distribution) and your native C compiler.
  20.      This means that it has a far more likely chance of getting the numbers
  21.      right.
  22.  
  23. NNNNOOOOTTTTEEEE
  24.      Only #define symbols get translated; you must still correctly pack up
  25.      your own arguments to pass as args for locking functions, etc.
  26.  
  27. EEEEXXXXPPPPOOOORRRRTTTTEEEEDDDD SSSSYYYYMMMMBBBBOOOOLLLLSSSS
  28.      By default your system's F_* and O_* constants (eg, F_DUPFD and O_CREAT)
  29.      and the FD_CLOEXEC constant are exported into your namespace.
  30.  
  31.      You can request that the _f_l_o_c_k() constants (LOCK_SH, LOCK_EX, LOCK_NB and
  32.      LOCK_UN) be provided by using the tag :flock.  See the _E_x_p_o_r_t_e_r manpage.
  33.  
  34.      You can request that the old constants (FAPPEND, FASYNC, FCREAT, FDEFER,
  35.      FEXCL, FNDELAY, FNONBLOCK, FSYNC, FTRUNC) be provided for compatibility
  36.      reasons by using the tag :Fcompat.  For new applications the newer
  37.      versions of these constants are suggested (O_APPEND, O_ASYNC, O_CREAT,
  38.      O_DEFER, O_EXCL, O_NDELAY, O_NONBLOCK, O_SYNC, O_TRUNC).
  39.  
  40.      Please refer to your native _f_c_n_t_l() and _o_p_e_n() documentation to see what
  41.      constants are implemented in your system.
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.